package edu.hawaii.webspider;

import org.junit.Test;
import static org.junit.Assert.assertSame;


/**
 * Class to test out the WebspiderExample code.
 * 
 * @author Rong Zhong Lao
 *
 */
public class TestWebSpiderExample {

  WebSpiderExample wse = new WebSpiderExample("http://www.httpunit.org");

  /**
   * Test getnumlinks.
   * 
   * @throws Exception
   *         exception if assertSame errors out.
   */

  @Test
  public void testGetNumLinks() throws Exception {
    int x = 26;
    assertSame("Testing number of URLs", x, wse.getNumLinks());

  }
}
